AC_INIT([The oracle of Woody Allen], [1.0], [joapuipe@gmail.com], [oracleofwoodyallen], [http://www.jpuigcerver.net/allen])
AC_PREREQ([2.59])
AM_INIT_AUTOMAKE([1.10 no-define no-texinfo.tex -Wall -Werror])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CXX

# check if Xerces-C library is installed
AC_CHECK_LIB(xerces-c,main,,AC_MSG_ERROR([xerces-c library not found. Please install it.]))

# check if Common-C++ library is installed
AC_CHECK_LIB(ccgnu2,main,,AC_MSG_ERROR([ccgnu2 library not found. Please install it.]))

#AC_ARG_ENABLE([debug],
#	[  --enable-debug    Turn on debugging],
#	[case "${enableval}" in
#	      yes) debug=true ;;
#       	      no)  debug=false ;;
#       	      *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
#	esac],[debug=false])
#AM_CONDITIONAL([DEBUG], [test $debug = true])
#AM_COND_IF([DEBUG], AC_SUBST(CPPFLAGS, -O0 -g -D_DEBUG), AC_SUBST(CPPFLAGS, -O3))

AC_CONFIG_FILES([Makefile])
AC_OUTPUT
